<%--
*
* 描述：头部文件
* 
* 时间：2013-5-10
*
--%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@include file="/share/window.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>
    <title>头部页</title>
  </head>
  <SCRIPT type=text/javascript>
	function fontZoom(size)
	{
	   document.getElementById('con').style.fontSize=size+'px';
	}
	function onDoLoadURL(contentId,url){
		$.ajax({
		   type: "POST",
		   dataType: "html",
		   url: url,
		   success: function(data){
		   		if(document.getElementById(contentId)==null){
		   			alert("["+contentId+"]不存在，请与系统管理员联系！");
		   		}
			   	document.getElementById(contentId).innerHTML=data;
		   },
		   error:function(data){
		        alert("对不起！操作失败，请与系统管理员联系！");
		   }
		 });			
	}
	
	//修改		
	function onDoSuggest(){
		var options={
			title:'【意见反馈】',
			url:'<s:url action="suggest_dsnc" namespace="/portal"/>',
			source : window,
			buttons:[top.MyWindow.Save,top.MyWindow.Cancel],
			multiplewidth:1,
			multipleheight:1
		};
		top.MyWindow.open(options);
	}
</SCRIPT>
<meta content="MSHTML 6.00.2900.3492" name=GENERATOR>
</head>
<body leftMargin=0 topMargin=0 marginheight="0" marginwidth="0">
<link href="<%=request.getContextPath()%>/portal/dsnc/css/header.min.css" type="text/css" rel="stylesheet">
<%--网页头部说明--%>
  <table cellSpacing=0 cellPadding=0 width=990 align=center border=0>
    <tr>
      <td style="PADDING-LEFT: 5px" width=720 background=<%=request.getContextPath()%>/portal/dsnc/images/01.gif height=25><img src="<%=request.getContextPath()%>/portal/dsnc/images/1arrow_r_on.gif" align=absMiddle> <a href="http://www.comit.com.cn/" target=_blank>广州通易科技有限公司 &nbsp;&nbsp; </a></td>
      <td align=middle><img style="CURSOR: hand" onclick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://localhost:8080/ComitWebFrame/portal/index.action');" src="<%=request.getContextPath()%>/portal/dsnc/images/02.gif" width=85></td>
      <td><img style="CURSOR: hand" onclick="window.external.addFavorite('http://localhost:8080/ComitWebFrame/portal/index.action','广州通易科技')" src="<%=request.getContextPath()%>/portal/dsnc/images/03.gif" width=104></td>
      <td><a href="javascript:void(0);" onclick="onDoSuggest()">意见反馈</a></td>
    </tr>
  </table>
  <table cellSpacing=0 cellPadding=0 width=990 align=center border=0>
    <tr>
      <td align=middle><img height=8 src="<%=request.getContextPath()%>/portal/dsnc/images/05.gif" width=990></td>
    </tr>
  </table>
  <table height=121 cellSpacing=0 cellPadding=0 width=990 align=center border=0>
    <tr>
      <td align=middle width=294 background=<%=request.getContextPath()%>/portal/dsnc/images/abc.gif><img height=120 src="<%=request.getContextPath()%>/portal/dsnc/images/1224592742.png" width=290 border=0></td>
      <td width=681 background=<%=request.getContextPath()%>/portal/dsnc/images/abc.gif>
<object codeBase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0 height=121 width=696 classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000><param NAME="_cx" value="5080"><param NAME="_cy" value="5080"><param NAME="FlashVars" value=""><param NAME="Movie" value="<%=request.getContextPath()%>/portal/dsnc/images/banner.swf"><param NAME="Src" value="<%=request.getContextPath()%>/portal/dsnc/images/banner.swf"><param NAME="WMode" value="Window"><param NAME="Play" value="-1"><param NAME="Loop" value="-1"><param NAME="Quality" value="High"><param NAME="SAlign" value=""><param NAME="Menu" value="-1"><param NAME="Base" value=""><param NAME="AllowScriptAccess" value=""><param NAME="Scale" value="ShowAll"><param NAME="DeviceFont" value="0"><param NAME="EmbedMovie" value="0"><param NAME="BGColor" value=""><param NAME="SWRemote" value=""><param NAME="MovieData" value=""><param NAME="SeamlessTabbing" value="1"><param NAME="Profile" value="0"><param NAME="ProfileAddress" value=""><param NAME="ProfilePort" value="0"><param NAME="AllowNetworking" value="all"><param NAME="AllowFullScreen" value="false">
      <embed src="<%=request.getContextPath()%>/portal/dsnc/images/banner.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="696" height="121"></embed>
          </object></td>
    </tr>
  </table>
  <table height=33 cellSpacing=0 cellPadding=0 width=990 align=center bgColor=#ffffff border=0>
    <tr>
      <td height=7></td>
    </tr>
    <tr>
      <td style="PADDING-LEFT: 10px" height=26>
<%--   鼠标触动事件      --%>
<SCRIPT type=text/javascript>
var oldmenu = 1;
function changeTD(tdIndex)
{
		var td = document.getElementById("td" + tdIndex);
		var a = document.getElementById("a" + tdIndex);
		var content = document.getElementById("content" + tdIndex);
		if(oldmenu!=0){
			tdx = document.getElementById("td" + oldmenu);
			ax = document.getElementById("a" + oldmenu);
			contentx = document.getElementById("content" + oldmenu);
			tdx.className = "hidden";
			ax.className = "nav2_link";
			contentx.className = "hiddencontent";
		}
		td.className = "active";
		a.className = "nav1_link";
		content.className = "activecontent";
		oldmenu = tdIndex;
}
//设置选中
function onDoSelectChannel(){
	try{
		<s:if test="channel!=null&&channel.isSaved()">
			changeTD(<s:property value="channel.parent!=null&&channel.parent.isSaved()?channel.parent.id:domain.id"/>);	
		</s:if>
		<s:elseif test="domain!=null&&domain.isSaved()">
			changeTD(<s:property value="domain.parent!=null&&domain.parent.isSaved()?domain.parent.id:domain.id"/>);
		</s:elseif>
	}catch(e){
	}
}
</SCRIPT>
  <body onload="onDoSelectChannel()">

<%-- 一级栏目 --%>
  	<table height=26 cellSpacing=0 cellPadding=0 background=<%=request.getContextPath()%>/portal/dsnc/images/menu_bg.gif border=0>
          <tr>
          	<td class=active id=td1 align=middle width=88 height=26><a class=nav1_link id=a1 onmouseover="changeTD(1); return false;" href="<%=request.getContextPath()%>/portal/index.action" target=_self>首页</a> </td>
            <td align=middle width=10></td>
            <s:iterator value="rootChannels" status="channel">
            	<td class=hidden id=td<s:property value='id'/> align=middle width=88 height=26>
	            	<a title="<s:property value="name"/>" class=nav2_link id=a<s:property value='id'/> onmouseover="changeTD(<s:property value='id'/>); return false;" href="<s:property value="getURL()"/>" target="<s:if test='whetherPop==1'>_blank</s:if><s:else>_self</s:else>"><s:property value="name"/></a><s:if test="%{isNew()}"><img border="0" src="<%=request.getContextPath()%>/portal/dsnc/images/xin.gif"></s:if> 
            	</td>
            	<td align=middle width=10></td>
			</s:iterator>
          </tr>
    </table>
     </td>
	    </tr>
	    </table> 
<%--二级栏目   --%>
    <table height=30 cellSpacing=0 cellPadding=0 width=990 align=center  background=<%=request.getContextPath()%>/portal/dsnc/images/06.gif border=0>
	    <tr>
	      <td>
	        <table height=30 width=990 border=0 >
	          <tr>
	            <td>
					<div class=activecontent id=content1>
					              <table cellSpacing=0 cellPadding=0 width=980 border=0>
					                <tr>
					                  <td align=middle width=50>&nbsp;</td>
					                  <td class=dh_font align=left width=930></td>
					                </tr>
					              </table>
					</div>
					<s:iterator value="rootChannels" status="channel" var="st">
						
							<div class=hiddencontent id=content<s:property value='id'/>>
					              <table cellSpacing=0 cellPadding=0 width=980 border=0>
					                <tr>
					                  <td align=middle width=50>&nbsp;</td>
					                  <td class=dh_font align=left width=930>
						                  <s:iterator value="childs" status="child">
												<a title="<s:property value="name"/>" class=dh_link href="<s:property value="getURL()"/>" target="<s:if test='whetherPop==1'>_blank</s:if><s:else>_self</s:else>"><s:property value="name"/></a> 
													<s:if test="%{isNew()}"><img border="0" src="<%=request.getContextPath()%>/portal/dsnc/images/xin.gif"></s:if>
													<s:if test="!#child.last" >|</s:if>
										  </s:iterator>
									  </td>
									</tr>
						          </table>
							</div>
					</s:iterator>
				</td>
	          </tr>
	        </table>
	   </td>
	   </tr>
	   </table>
  </body>
</html>
